<?php
require_once( $_SERVER['DOCUMENT_ROOT'].'/../libs/smarty.inc' );
require_once( $_SERVER['DOCUMENT_ROOT'].'/../libs/smt_variables.php' );
require_once( $_SERVER['DOCUMENT_ROOT'].'/../libs/Class_DB.php' );
require_once( $_SERVER['DOCUMENT_ROOT'].'/../libs/Class_ERROR.php' );
require_once( $_SERVER['DOCUMENT_ROOT'].'/../libs/login.inc.php' );

$db = new Class_DB;

header("Content-Type:text/plain");

$fp = fopen( "./dnews.sql", "r" );
if( $fp ){
	while( !feof($fp)){
		$sql = fgets($fp);
		$db->query( $sql );
		print $sql;
		print "\n";
	}
}else{
	print "err";
}
fclose($fp);



?>